<jsp:directive.include file="parts/templateHead.jsp" />
<jsp:directive.include file="parts/includeBootstrap.jsp" />
<script type="text/javascript" src="js/RegistrationValidation.js"></script>
<!-- this is required for dropdowns -->
<title><s:text name="menu.registration" /></title>
</head>
<body>
		<!-- 	nav -->
	<nav class="navbar navbar-default navbar-fixed-top">
		<jsp:directive.include file="parts/navbarHeader.jsp" />
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li><s:a action="redirect-stpage"><s:text name="menu.home" /></s:a></li>
				<li><s:a action="redirect-stview"><s:text name="menu.view" /></s:a></li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<jsp:directive.include file="parts/navigation/lang.jsp" />
				<jsp:directive.include file="parts/navigation/login.jsp" />
				<li><s:a action="redirect-reg"><s:text name="menu.registration" /></s:a></li>
			</ul>
		</div>
	</nav>
	<!-- 	endnav -->

	<div class="container  topoffset">
		<div class="page-header">
			<h1><s:text name="menu.registration" /></h1>
		</div>
		
		<div id="error"></div>
		
		<div class="well span4">
			<c:if test="${reason != null}">
				<div class="alert alert-danger">
					<c:out value="${reason}"/>
				</div>
			</c:if>
				
			<form name="reg" method="post" action="reg" accept-charset="UTF-8">
				<input id="login"     class="form-control" type="text"     name="login"     placeholder="login"            >
				<input id="password1" class="form-control" type="password" name="password1" placeholder="password"         >
				<input id="password2" class="form-control" type="password" name="password2" placeholder="password confirm" >
				<input id="mail"      class="form-control" type="text"     name="mail"      placeholder="mail"             >
				<input id="username"  class="form-control" type="text"     name="username"  placeholder="name"             >
				<br><br>
				<button type="button" onclick="Validate()" class="btn btn-block btn-success ">
					<s:text name="btn.registrate" />
				</button>
			</form>
			
		</div>
	</div>
</body>
</html>